set more off
clear all

global storage: env storage

# delimit
quietly infix 
	4 lines 
    1: float IHDP 1-4 
	1: int VA1 30 
	1: int VA2 31 
    1: int VA3 32 
	1: int VA4 33 
	1: int VA5 34 
	1: int VA6 35 
	1: int VA12 36 
	1: int VA13 37 
	1: int VA14 38 
	1: int VA15 39 
	1: int VA20 40 
	1: int VA21 41 
	1: int VA22 42 
	1: int VA7 43 
	1: int VA8 44 
	1: int VA9 45 
	1: int VA10 46 
	1: int VA11 47 
	1: int VA16 48 
	1: int VA17 49 
	1: int VA18 50 
	1: int VA19 51 
	1: int VA23 52 
	1: int VA24 53 
	1: int VA25 54 
	1: int VA26 55 
	1: int VA27 56 
	1: int VA28 57 
	1: int VA29 58 
	1: int VA30 59 
	1: int VA35 60 
	1: int VA36 61 
	1: int VA37 62 
	1: int VA41 63 
	1: int VA42 64 
	1: int VA43 65 
	1: int VA31 66 
	1: int VA32 67 
	1: int VA33 68 
	1: int VA34 69 
	1: int VA38 70 
	1: int VA39 71 
	1: int VA40 72 
	1: int VA44 73 
	1: int VA45 74 
    using "$storage/ece_parenting/ICPSR_09795_ASCII/DS0043/09795-0043-Data.txt", clear;
# delimit cr

lab var IHDP "IHDP Number" 
lab var VA1 "Vocalized to Child"
lab var VA2 "Responds Verbally"
lab var VA3 "Names Objects"
lab var VA4 "Speech is Distinct"
lab var VA5 "Initiates Conversation with Visitor"
lab var VA6 "Converses Freely"
lab var VA12 "Does Not Shout"
lab var VA13 "Does Not Express Annoyance"
lab var VA14 "Neither Spanks nor Slaps"
lab var VA15 "No More Than 1 Phys. Punish. Past Week"
lab var VA20 "One of 3 Regular Subs"
lab var VA21 "Taken to Grocery Store"
lab var VA22 "Gets Out 4 Times/Week"
lab var VA7 "Permits Messy Play"
lab var VA8 "Praises Twice"
lab var VA9 "Positive Feelings"
lab var VA10 "Kisses or Caresses"
lab var VA11 "Responds Pos to Praise"
lab var VA16 "Does Not Scold"
lab var VA17 "Does Not Interfere"
lab var VA18 "At least 10 Books"
lab var VA19 "Pet"
lab var VA23 "Regularly to Dr's Office"
lab var VA24 "Special Place for Toys"
lab var VA25 "Safe Play Environment"
lab var VA26 "Muscle Activity Toys"
lab var VA27 "Push or Pull Toys"
lab var VA28 "Stroller or Walker"
lab var VA29 "Provides Toys for Visit"
lab var VA30 "Appropriate Learning Equipment"
lab var VA35 "Keeps in Visual Range"
lab var VA36 "Talks to While Working"
lab var VA37 "Encourages Dev Advance"
lab var VA41 "Father Care Daily"
lab var VA42 "Reads Stories 3/Week"
lab var VA43 "Child Eats w/ Parents"
lab var VA31 "Learning Facilitators"
lab var VA32 "Eye-Hand Coord Toys"
lab var VA33 "Complex Eye-Hand Toys"
lab var VA34 "Lit & Music Toys"
lab var VA38 "Personal Attn to Toys"
lab var VA39 "Structures Play Periods"
lab var VA40 "Challenging Toys"
lab var VA44 "Visits Relatives"
lab var VA45 "3 or More Books of Children's"

// recode 1-Yes/2-No to 1-Yes/0-No
foreach var of varlist VA1-VA45 {
	replace `var' = 0 if `var' == 2
}
